/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package baselinetagging;

import java.io.IOException;
import java.util.ArrayList;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;



/**
 *
 * @author Nguyen Thuy Ngoc <ntngoc1988@gmail.com>
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws SAXException, IOException, ParserConfigurationException {

        // TODO code application logic here
        XmlParser parser = new XmlParser();
        ArrayList<String> results = parser.loadFolder("train");
        GoldenSentence  sentence = new GoldenSentence(results.get(0));
        ArrayList<GoldenItem> items = sentence.getItems();
        for (int i = 0; i < items.size(); i++){
            System.out.println(items.get(i).getWord() + " " + items.get(i).getTag().toString());
        }
        //ArrayList<String> raws = parser.getRawData(results);
    }

}
